package com.doone.ismp.dao;

import org.springframework.stereotype.Service;

import com.doone.ismp.po.User;

/**
 * @package com.doone.ismp.dao
 * @author 甘雨波
 * @date 2009-09-03 上午 09:18
 * @description 测试框架用DAO接口实现
 *
 */
@Service("UserDaoImpl")
public class UserDaoImpl extends BaseDaoSupport implements IUserDAO {
	
	/*
	 * 保存用户
	 */
	public String saveUser(User user) {

			log.info("DAO CONSOLE:USERNAME="+user.getUserName());
			getSqlMapClientTemplate().insert("insertUser", user);
			return "S";
		
	}
	/*
	 * 保存用户方法2
	 */
	public String saveUser2(User user) {

		log.info("DAO CONSOLE:USERNAME="+user.getUserName());
		getSqlMapClientTemplate().insert("insertUser2", user);
		return "S";
	
}

}
